<?php if((isset($totalPages) && $totalPages > 1) || $showContact): ?>
<div class="clearfix"></div>
<div class="bottomPager">
	<div class="row contactRow">
		<?php if($showContact): ?>
		<div class="col-md-5 contact">
			<span><?php echo translate("selecteaza_si"); ?> </span> 
			<button class="btn btn-default companyContact"><?php echo translate("contacteaza_furnizori"); ?></button>
		</div>
		<?php endif; ?>
		<?php if(isset($totalPages) && $totalPages > 1): ?>
			<div class="itemsPerPage col-md-7">
				<?php echo translate("elements_per_page"); ?>
				<a href="#" title="" class="selected" items="20">20</a>
				<a href="#" title="" items="40">40</a>
				<a href="#" title="" items="60">60</a>
			</div>
		<?php endif; ?>
		<div class="clearfix"></div>
	</div>
	<?php if(isset($totalPages) && $totalPages > 1): ?>
	<div class="row">
		<div class="col-md-8 pager">
			<?php echo translate("page"); ?>: 
			<?php
				require_once("libs/helpers/Pagination.php");
				
				$params["base_url"] = $page["url"];
				$params["total_rows"] = $totalItems;
				$params["per_page"] = $itemsPerPage;
				$pager = new Pagination($params);
				$pagers = $pager->create_links();
				
				print_r($pagers);
			?>
			<!--
			<a href="#" title="">1</a>
			<a href="#" title="">2</a>
			<a href="#" title="">3</a>
			<a href="#" title="">4</a>
			<a href="#" title="">5</a>
			<a href="#" title="">6</a>
			<a href="#" title="">7</a>
			<a href="#" title="">8</a>
			<span>...</span>
			<a href="#" title="">120</a>
			&nbsp;
			&nbsp;
			<a href="#" title=""><span class="glyphicon glyphicon-chevron-left"></span> ant</a>
			<a href="#" title="">urm <span class="glyphicon glyphicon-chevron-right"></span></a>
			-->
		</div>
		<div class="col-md-4 quickJump">
			<?php echo translate("go_to_page"); ?>: <input type='text' name="page" id="page_number" />
			<button class="btn btn-default">ok</button>
		</div>
	</div>
	<?php endif; ?>
</div>
<div class="clearfix"></div>
<?php endif; ?>